<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>解决 IE6 不支持 fixed 绝对定位以及IE6下被绝对定位的元素在滚动的时候会闪动的问题</title>
        <style>
            /* IE6 hack */
            *html, *html body {
              background-image: url(about:blank);
              background-attachment: fixed;
            }
            *html #fixed {
              position: absolute;
              top: expression(((e=document.documentElement.scrollTop) ? e : document.body.scrollTop) + 100 + 'px');
            }
            #fixed{
                position: fixed;
                right:0;
                top:0;
                line-height: 20px;
                color:#fc0;
            }
            .box-100p-500{
                width: 100%;
                height: 500px;
            }
            .bgc-pink{
                background-color: pink;
            }
            .bgc-gold{
                background-color: gold;
            }
        </style>
    </head>
    <body>
        <div id="fixed">欢迎来到人工智能世界</div>
        <div class="container">
            <div class="box-100p-500 bgc-pink">
                <p>小狗钱钱</p>
            </div>
            <div class="box-100p-500 bgc-gold">
                <p>我要买房要多少钱</p>
                <p>我要结婚需要多少钱</p>
            </div>
        </div>
    </body>
</html>